﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="DevFrameWork.Web.SysAdmin.Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title></title>
    <style type="text/css">
        body{margin:0px; overflow:auto; background-color:#336699; font-size:9pt;}
        #contentMain {width:100%; height:1000;}
        #loginMain { background-color:#ffffff;}
        .login{border:1px solid #336699;width:150px;}
</style>
<%=DevCore.Web.UIPage.WebPageHelper.GetScript(ResolveUrl("~/Script/js/jquery-1.4.2.min.js"))%>
<%=DevCore.Web.UIPage.WebPageHelper.GetScript(ResolveUrl("~/Script/js/MyValidate.js"))%>
<%=DevCore.Web.UIPage.WebPageHelper.GetScript(ResolveUrl("~/Script/EasyUI/jquery.easyui.min.js"))%>
<script type="text/javascript">
    $(document).ready(function() {
        $('#btnLogin').click(function() {
            alert('click me');
            $('#curForm').form({
                onSubmit: function() {
                    if (IsFieldEmpty("edtUserName", "用户不能为空") == false) {
                        return false;
                    }
                    if (IsFieldEmpty("edtUserPassword", "请输入密码") == false) {
                        return false;
                    }
                    if (IsFieldEmpty("edtOrgCode", "请输入机构代码") == false) {
                        return false;
                    }
                    return true;
                },
                success: function(data) {
                    alert(data);
                    if (data == "1") {
                        alert('验证成功.');
                        location.href = "MainFrame.aspx";
                    }

                    if (data == "-1") {
                        alert('用户名或者密码错误.');
                    }
                }
            });
        });
    })
</script>
</head>
<body>
    <form id="curForm" action="<%=ResolveUrl("~/AppService/Login/LoginHandler.ashx?cmd=doCheck") %>" method="post">
<div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" id="contentMain">
  <tr>
    <td height="200">&nbsp;</td>
  </tr>
  <tr>
    <td height="93"><table width="100%" border="0" cellspacing="0" cellpadding="0" id="loginMain">
        <tr>
    <td height="1" bgcolor="#000000"><img src="images/login/spacer.gif" width="1" height="1"></td>
  </tr>
  <tr>
  <td style="height:50px; background-color:#ffffff;"></td>
  </tr>
      <tr>
        <td><img src="images/login/02.jpg" width="1004" height="40" /></td>
      </tr>
      <tr>
        <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="501"><img src="images/login/2_1.gif" width="501" height="200" /></td>
            <td width="488" background="images/login/2_2.gif" style="background-repeat:no-repeat;"><table width="400" height="150" border="0" cellpadding="1" cellspacing="1">
                <tr align="center">
                  <td height="40" colspan="2" style="font-size:10pt;">::: 管 理 登 录 :::</td>
                </tr>
                <tr>
                  <td width="150" height="25" align="right"><img src="images/login/username.gif" width="25" height="25" align="absmiddle" /> 用户名：</td>
                  <td>
                      <input type="text" id="edtUserName" name="edtUserName" class="login" />
                    </td>
                </tr>
                <tr>
                  <td height="25" align="right"><img src="images/login/password.gif" width="25" height="25" align="absmiddle" /> 密　码：</td>
                  <td>
                      <input type="password" id="edtUserPassword" name="edtUserPassword" class="login" />
                    </td>
                </tr>
                   <tr>
                  <td height="25" align="right">机　构：</td>
                  <td>
                      <input type="text" id="edtOrgCode" name="edtOrgCode" class="login" />
                    </td>
                </tr>
                <tr align="center">
                  <td colspan="2">
                      <input type="image" id="btnLogin" src="images/login/button.gif" />&nbsp;
                  </td>
                </tr>
            </table></td>
            <td width="*" bgcolor="#F2F2F2" style="background-repeat:no-repeat;">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="37" valign="bottom"  >
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
          <td background="images/login/04-bg.jpg"><img src="images/login/04.jpg" width="1004" height="40" /> </td>
          </tr>
          <tr>
          <td style="height:50px;">说明: 请输入用户名、密码、以及机构代码.</td>
          </tr>
            <tr>
    <td height="1" bgcolor="#000000"><img src="images/login/spacer.gif" width="1" height="1"></td>
  </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
   </div>
    </form>
</body>
</html>
